package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.etone.smartAudit.enums.StateType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: sovy
 * @date: 2020/8/4
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName(value = "d_dictionary")
public class Dictionary implements Serializable {

    @TableId(type = IdType.AUTO, value = "intId")
    private Integer id;

    /**
     * 键
     */
    @TableField("vcCode")
    private String code;

    /**
     * 键
     */
    @TableField("vcValue")
    private String value;

    /**
     * 有效性
     */
    @TableField("vcState")
    private StateType state;

    /**
     * 备注
     */
    @TableField("vcRemark")
    private String remark;
}
